﻿using System;

namespace Inovout.Gui.Wpf.ViewModels
{
    public abstract class ModelViewModel<TModel> : ModelViewModel
    {
        protected ModelViewModel()
            : base(typeof(TModel))
        {
        }
        protected TModel Model
        {
            get { return (TModel)base.ViewData.Model; }
        }
        protected override Type ModelType
        {
            get { return typeof(TModel); }
        }
    }
}
